package com.ymttest.database.sqlwapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.couponsendsubtask;
import com.ymttest.database.model.coupontask;
import com.ymttest.utils.EnvSetup;

public class coupontaskWapper {
	SqlManager manager;

    public coupontaskWapper() {
        manager = new SqlManager("mysqlcoupon" + EnvSetup.getEnv());
    }

    public coupontask selectByPrimaryKey(Integer taskId)  {
    	coupontask model=new coupontask();
        List<coupontask> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.coupontaskMapper.selectByPrimaryKey",
                        taskId);
        if(result.size()>0)
        	model=result.get(0);
        return model;
    }
    
   




    public static void main(String[] args) {
    	coupontaskWapper test = new coupontaskWapper();

       System.out.println(test.selectByPrimaryKey(19));
        // test.insertYmtcouponsendsubtaskSetting(3,11);
        // Logger.debug(test.getLastYmtcouponsendsubtaskSettingId());


    }
}
